package com.xxh.myapp.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * (Comment)表实体类
 *
 * @author makejava
 * @since 2020-05-12 19:24:26
 */
@SuppressWarnings("serial")
public class Comment extends Model<Comment> {
    
    private Integer uid;
    
    private String uname;
    
    private String headimg;
    
    private String comments;
    
    private Float starnum;
    
    private Date uptime;

    @TableId(type = IdType.AUTO)
    private Integer cid;


    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Float getStarnum() {
        return starnum;
    }

    public void setStarnum(Float starnum) {
        this.starnum = starnum;
    }

    public Date getUptime() {
        return uptime;
    }

    public void setUptime(Date uptime) {
        this.uptime = uptime;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.cid;
    }
    }